import React from 'react'
import { BrowserRouter as Router, Route, HashRouter } from 'react-router-dom'
import Login from '../views/loginAndReq/login'


const App = () => {
  return <div>this is App in router</div>
}
const NoMatch = () => {
  return <div>this is NoMatch in router</div>
}
const Routers = () => {
  return <HashRouter>
    <Router>
      <Route path="/" component={App}>
        {/* <Route path="about" component={About}/>
    <Route path="users" component={Users}>
      <Route path="/user/:userId" component={User}/>
    </Route> */}
        <Route path="/" component={NoMatch} />
      </Route>
      <Route path="/login" component={Login}>
      </Route>
    </Router>
  </HashRouter>

}

export default Routers